package com.wu.weiyang.util;

/**
 * className: ResponseTemp <br/>
 * author: 50816 <br/>
 * date: 2019/8/18 22:06 <br/>
 * describe:
 */
public class ResponseTemp<T> {
    private Integer code;
    private String msg;
    private T data;

    public Integer getCode() {
        return code;
    }

    public ResponseTemp<T> setCode(Integer code) {
        this.code = code;
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public ResponseTemp<T> setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public T getData() {
        return data;
    }

    public ResponseTemp<T> setData(T data) {
        this.data = data;
        return this;
    }

    public ResponseTemp(Integer code, String msg, T data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public ResponseTemp() {
    }

    @Override
    public String toString() {
        return "ResponseTemp{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
